/*
reset
*/
*,:before,:after{
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}
body, dl, dd, h1, h2, h3, h4, h5, h6, p, form, ol, ul, dl{
    margin: 0;
}
html,body{
    -webkit-overflow-scrolling: touch;
    height: 100%;
}
html {
    font-size: 17.06666666px;
    -webkit-tap-highlight-color: transparent;
    overflow: hidden
}
@media only screen and (min-width: 360px) {
    html {
        font-size: 19.2px !important;
    }
}
@media only screen and (min-width: 375px) {
    html {
        font-size: 20px !important;
    }
}
@media only screen and (min-width: 400px) {
    html {
        font-size: 21.33333333px !important;
    }
}
@media only screen and (min-width: 414px) {
    html {
        font-size: 22.08px !important;
    }
}
@media only screen and (min-width: 480px) {
    html {
        font-size: 25.6px !important;
    }
}
body{
    margin: 0 auto;
    min-width: 320px;
    max-width: 640px;
    background: #f1f6f9;
    font-family: "Helvetica Neue", "微软雅黑", Helvetica, STHeiTi, Arial, sans-serif;
    font-size: .8rem;
    word-break: break-all;
}
ol,ul{
    padding: 0;
    list-style: none;
}
a{
    text-decoration: none;
    color: #000;
}
i,em{
    font-style: normal;
}
img{
    border: none 0;
    vertical-align: middle;
    max-width: 100%;
}
input,button,select,textarea{
    margin: 0;
    padding: 0;
    outline: none;
    border: none;
    resize: none;
    -webkit-appearance: none;
    font-family: "Helvetica Neue", "微软雅黑", Helvetica, STHeiTi, Arial, sans-serif;
}
input{
    font-family: "Helvetica Neue", "微软雅黑", Helvetica, STHeiTi, Arial, sans-serif;
}
input::-webkit-outer-spin-button,input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}
input::-moz-placeholder, textarea::-moz-placeholder {
    color: #c8c8c8;
}
input:-ms-input-placeholder, textarea:-ms-input-placeholder {
    color: #c8c8c8;
}
input::-webkit-input-placeholder, textarea::-webkit-input-placeholder {
    color: #c8c8c8;
}

/*
模拟输入框光标闪烁效果
*/
@-webkit-keyframes blink-caret {
    50% {
        background: transparent;
    }
}
@keyframes blink-caret {
    50% {
        background: transparent;
    }
}

/*
pay
*/
.pay-wrap{
    display: -webkit-box;
    display: flex;
    -webkit-box-orient: vertical;
    flex-direction: column;
    height: 100%;
}
.pay-wrap .main{
    -webkit-box-flex: 1;
    flex: 1;
    padding: .75rem;
    overflow-y: auto;
}
.pay-wrap .main .avatar{
    margin: .25rem auto .5rem;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid #fff;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    overflow: hidden;
    -webkit-box-shadow: 0 0 .5rem #dae5ec;
    box-shadow: 0 0 .5rem #dae5ec;
}
.pay-wrap .main .title{
    text-align: center;
}
.form-group{
    margin: .75rem 0;
    border: 1px solid #dce2e9;
    background: #fff;
    -webkit-border-radius: .25rem;
    border-radius: .25rem;
    overflow: hidden;
    -webkit-box-shadow: 0 0 .5rem #e2ecf2;
    box-shadow: 0 0 .5rem #e2ecf2;
}
.form-group li{
    position: relative;
    display: -webkit-box;
    display: flex;
    padding: 0 .75rem;
    height: 3rem;
    line-height: 3rem;
    border-bottom: 1px solid #e7edf4;
}
.form-group li:last-child{
    border-bottom-color: transparent;
}
.control-label{
    flex-shrink: 0;
    margin-right: .75rem;
    width: 4.5em;
}
.form-control{
    -webkit-box-flex: 1;
    flex: 1;
    text-align: right;
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
}
.form-control::-webkit-scrollbar {
    width: 0;
    height: 0
}
.form-control[placeholder]{
    color: #c8c8c8;
}
.form-control[focus]:after{
    content: '';
    position: absolute;
    right: .75rem;
    top: 1rem;
    bottom: 1rem;
    width: 1px;
    background: #000;
    animation: blink-caret .5s step-end infinite alternate;
}
.keyboard{
    flex-shrink: 0;
    overflow: hidden;
    background: #fff;
    -webkit-user-select: none;
    user-select: none;
}
.keyboard .key{
    float: left;
    width: 33.33333333%;
    height: 3rem;
    line-height: 3rem;
    font-size: 1.2rem;
    color: #545961;
    text-align: center;
    border-style: solid;
    border-color: #e7edf4;
    border-width: 1px 1px 0 0;
}
.keyboard .key[data-action="point"]{
    font-size: 1.5rem;
    line-height: 1.9rem;
}
.keyboard .key:nth-child(3n){
    border-right: 0;
}
.keyboard .key:active{
    background: #edf3f6;
}
#btn-pay{
    flex-shrink: 0;
    height: 3rem;
    line-height: 3rem;
    font-size: 1rem;
    color: #fff;
    text-align: center;
    background: linear-gradient(90deg, #f85d3e, #f53d3a);
    -webkit-user-select: none;
    user-select: none;
}
#btn-pay[disabled]{
    color: rgba(255,255,255,.5);
}
#popup-remark{
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 99;
    padding-top: .5rem;
    background: #f1f6f9;
}
#popup-remark textarea{
    display: block;
    padding: .55rem .75rem;
    width: 100%;
    height: 5.5rem;
    font-size: .8rem;
    line-height: 1.5;
    background: #fff;
}
#popup-remark .btn-group{
    display: -webkit-box;
    display: flex;
    padding: .75rem;
}
#popup-remark .btn-group .btn{
    -webkit-box-flex: 1;
    flex: 1;
    height: 2.2rem;
    -webkit-border-radius: .15rem;
    border-radius: .15rem;
    font-size: .9rem;
    text-align: center;
}
#popup-remark .btn-group .btn-cancel{
    margin-right: .75rem;
    border: 1px solid #e9ecf2;
    line-height: 2.1rem;
    color: #666;
    background: #fff;
}
#popup-remark .btn-group .btn-confirm{
    line-height: 2.2rem;
    color: #fff;
    background: linear-gradient(90deg, #f85d3e, #f53d3a);
}

/*
result
*/
.result-wrap{
    padding: .75rem;
}
.result-wrap .main{
    padding: 1.5rem 0 .75rem;
    background: #fff;
    -webkit-border-radius: .25rem;
    border-radius: .25rem;
    -webkit-box-shadow: 0 0 .825rem #e2ecf2;
    box-shadow: 0 0 .825rem #e2ecf2;
}
.result-wrap .top{
    padding: 0 .75rem;
    text-align: center;
}
.result-wrap .icon-box{
    display: inline-block;
    width: 2.25rem;
    height: 2.25rem;
}
.result-wrap .icon-box img{
    width: 2.25rem;
    height: 2.25rem;
}
.result-wrap .text{
    margin-top: .875rem;
    font-size: .85rem;
}
.result-wrap .price{
    margin: .75rem 0 1rem;
    font-size: 1.55rem;
}
.result-wrap .price small{
    font-size: 1rem;
}
.result-wrap .list{
    padding-left: .75rem;
    border-top: 1px solid #f6f6f6;
    font-size: .7rem;
    color: #9eaab6;
}
.result-wrap .list li{
    display: -webkit-box;
    display: flex;
    padding: .5rem .75rem .5rem 0;
    border-bottom: 1px solid #f6f6f6;
}
.result-wrap .list li:last-child{
    border-bottom: 0;
}
.result-wrap .list .tit{
    flex-shrink: 0;
    width: 4.5em;
}
.result-wrap .list .con{
    -webkit-box-flex: 1;
    flex: 1;
    margin-left: .75rem;
    text-align: right;
}
.result-wrap .btn-back{
    display: block;
    margin: 1rem .75rem 0;
    height: 2rem;
    line-height: 1.95rem;
    border: 1px solid #f64039;
    -webkit-border-radius: .2rem;
    border-radius: .2rem;
    font-size: .8rem;
    color: #f64039;
    text-align: center;
}
.result-wrap .btn-back:active{
    border-color: transparent;
    color: #fff;
    background: -webkit-linear-gradient(0deg, #f85d3e, #f53d3a);
    background: linear-gradient(90deg, #f85d3e, #f53d3a);
}